import { defHttp } from '/@/utils/http/axios';

enum Api {
  online = '/api-uaa/online/statistics',
  deviceStatistics = '/api-iot/iot/statistics/device/current',
}

/**
 * 统计在线用户
 * @param params
 */
 export const getOnline = (params) => {
  return defHttp.get({ url: Api.online, params });
};

/**
 * 统计设备
 * @param params
 */
export const getDeviceStatistics = (params) => {
  return defHttp.get({ url: Api.deviceStatistics, params });
};